#ifndef VEHICLE_H
#define VEHICLE_H

#include <QWidget>
#include "search.h"
#include <QtSql>

namespace Ui{
    class Vehicle;
}

class Vehicle : public QWidget
{
    Q_OBJECT
public:
    explicit Vehicle(QWidget *parent = 0);
    ~Vehicle();
    
signals:
    
public slots:
    void slotChooseOwner();
    void slotOwnerSelected();
    void slotOkClicked();

private:
    Ui::Vehicle * ui;
    Search * search;
    QSqlTableModel * model;
    int owner_id;
};

#endif // VEHICLE_H
